/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 *
 * @author robson
 */

@Entity
@Table(name="tema")
public class Tema implements Serializable {
    
    @Id
    @Column(name = "id_tema", nullable = false)
    @SequenceGenerator(name = "seq_tema", sequenceName = "tema_id_tema_seq")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seq_tema")
    private long temaId;
    
    @Column(name="nome_tema")
    private String nomeTema;

    public Tema(long temaId, String nomeTema) {
        this.temaId = temaId;
        this.nomeTema = nomeTema;
    }

    public Tema() {
        
    }

    public long getTemaId() {
        return temaId;
    }

    public void setTemaId(long temaId) {
        this.temaId = temaId;
    }
    
    public String getNomeTema() {
        return nomeTema;
    }

    public void setNomeTema(String nomeTema) {
        this.nomeTema = nomeTema;
    }
    
    
}
